package com.example.service.configuration.impl;

import com.example.bean.configuration.JiGou;
import com.example.bean.configuration.PingGuJiBieGuanLi;
import com.example.bean.configuration.ShouFeiBiaoZhun;
import com.example.bean.configuration.vo.ShouFeiBiaoZhunVo;
import com.example.mapper.configuration.ShouFeiBiaoZhunMapper;
import com.example.service.configuration.ShouFeiBiaoZhunService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShouFeiBiaoZhunServiceImpl implements ShouFeiBiaoZhunService {

    @Autowired
    ShouFeiBiaoZhunMapper mapper;

    @Override
    public List<JiGou> xiala() {
        return mapper.xiala();
    }

    @Override
    public PageInfo<ShouFeiBiaoZhun> getpage(ShouFeiBiaoZhunVo vo) {
        PageHelper.startPage(vo.getDqNum(),vo.getXsNum());
        PageInfo<ShouFeiBiaoZhun> page = new PageInfo<ShouFeiBiaoZhun>(mapper.getpage(vo));
        return page;
    }

    @Override
    public Integer addsfbz(ShouFeiBiaoZhun shouFeiBiaoZhun) {
        return mapper.addsfbz(shouFeiBiaoZhun);
    }

    @Override
    public ShouFeiBiaoZhun getId(String aid) {
        return mapper.getId(aid);
    }

    @Override
    public Integer xiugai(ShouFeiBiaoZhun shouFeiBiaoZhun) {
        return mapper.xiugai(shouFeiBiaoZhun);
    }

    @Override
    public Integer dels(List<String> ids) {
        return mapper.dels(ids);
    }
}
